crPEGetNthTableLogOnInfo
The crPEGetNthTableLogOnInfo function retrieves the log on information required by a report.
Declare Function crPEGetNthTableLogOnInfo Lib "crwrap32.dll" Alias "crvbPEGetNthTableLogOnInfo" (ByVal printJob As Integer, ByVal TableN As Integer, ByRef ServerName As String, ByRef dbName As String, ByRef UserID As String) As Integer
Parameters
printJob
| Specifies the handle of the print job for which you want to get table log on information.
|
TableN
| Specifies the number of the table from which you want to get log on information. The first table is table 0.
|
ServerName
| Specifies the logon name for the server used to create the report. For ODBC, use the data source name. *
|
dbName
| Specifies the logon name for the database used to create the report. *
|
UserID
| Specifies the user ID# necessary to log on to the server. *
|
*When you pass an empty string ("") for this parameter, the program uses the value that's already set in the report. If you want to override a value that's already set in the report, use a non-empty string (i.e., "Server A"). All strings must be null-terminated.
|
Return Value
TRUE (1) if the call is successful; FALSE (0) if the call fails.